package com.ny.service.impl;

import com.ny.dao.ManagerDao;
import com.ny.dao.impl.ManagerDaoImpl;
import com.ny.entity.Manager;
import com.ny.service.MangerService;

import java.sql.SQLException;

public class MangerServiceImpl implements MangerService {
    private ManagerDao managerDao = new ManagerDaoImpl();

    public MangerServiceImpl() throws SQLException, ClassNotFoundException {
    }


    @Override
    public Manager log(String name, String pwd) throws SQLException {
        return managerDao.log(name, pwd);
    }
}
